Skip to content

Central management status added - #337

Merged
SuperQ merged 7 commits into
prometheus-community:mainfrom
Philldomd:feature/system-central-management-status
Nov 14, 2025
Merged

Central management status added#337
SuperQ merged 7 commits into
prometheus-community:mainfrom
Philldomd:feature/system-central-management-status

Conversation

@Philldomd

Copy link
Copy Markdown
Contributor

Central management probe added

Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These would be better as state set / enum metrics.

Comment thread pkg/probe/system_central_management.go Outdated
Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
Comment thread pkg/probe/system_central_management.go Outdated
Sorry missed that

Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Philip Örnfeldt <1583206+Philldomd@users.noreply.github.com>
@SuperQ

SuperQ commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Needs a rebase with the README.md

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still prefer state sets for multi-value status gauges. But this is probably fine for now.

@Philldomd

Copy link
Copy Markdown
Contributor Author

When you say state sets, do you mean one metrics per status? So registrationStatus should be divided to 4 metrics ?

@SuperQ

SuperQ commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Yes, a boolean per status with the status as a label is what we typically do for these kinds of metrics.

Then you can do boolean PromQL like avg_over_time(foo{status="offline"}[1h]). It make the query of status data easier.

Signed-off-by: Philip Örnfeldt <philip.ornfeldt@outlook.com>
@Philldomd
Philldomd force-pushed the feature/system-central-management-status branch from 89e5ce3 to 8bc89ce Compare November 11, 2025 20:25
Philldomd and others added 3 commits November 13, 2025 20:14
Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
@SuperQ
SuperQ merged commit d8fda54 into prometheus-community:main Nov 14, 2025
9 checks passed
rnxmlu pushed a commit to rnxmlu/fortigate_exporter that referenced this pull request Feb 6, 2026
* Central management status added

---------

Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
Signed-off-by: Philip Örnfeldt <1583206+Philldomd@users.noreply.github.com>
Signed-off-by: Philip Örnfeldt <philip.ornfeldt@outlook.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Michael Lucka <michael.lucka@rnetx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants